define(function (require) {
    var Base = require('group/common/main');
    var utils = require('common/utils/home');
    var Mask = require('common/mask');
    var mask = new Mask();


    return Base.extend({
        initialize: function (params) {
            var _this = this;
            Base.prototype.initialize.apply(this, [params]);
            if (_this['page_' + _global.a]) {
                _this['page_' + _global.a]();
            }
        },
        page_index: function () {
            var _this = this;
            new Swiper('.swiper-container', {
                pagination: '.swiper-pagination'
            });
            _this.$('#J_ad_list a img').css({
                width: _this.page_width() + 'px',
                height: _this.page_width() / 2 + 'px'
            });

            _this.$('.index-rec-banner a img').css({
                width: _this.page_width() + 'px',
                height: _this.page_width() / 2 + 'px'
            });
            _this.$('.ad_list4 a.col-xs-6').eq(0).css({
                height: _this.page_width() / 2 + 'px'
            });
            _this.$('.ad_list4 a.col-xs-6').eq(1).css({
                height: _this.page_width() / 4 + 'px'
            });
            _this.$('.ad_list4 a.col-xs-3').css({
                width: _this.page_width() / 4 + 'px',
                height: _this.page_width() / 4 + 'px'
            });
            _this.$('.ad_list4 a img').css({
                width: '100%',
                height: '100%',
            });
            _this.waterfall();


        }
    });
});